package com.yzx.lifeassistants.view.bdmap;

import java.util.ArrayList;
import java.util.List;

import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.Marker;
import com.baidu.mapapi.map.OverlayOptions;
import com.baidu.mapapi.map.Polyline;
import com.baidu.mapapi.overlayutil.OverlayManager;

/**
 * @Description: 继承OverlayManager
 * @author: yzx
 * @time: 2016-4-11 上午9:31:41
 */
public class MyOverlayManager extends OverlayManager {
	private List<OverlayOptions> optionsList;

	public MyOverlayManager(BaiduMap baiduMap) {
		super(baiduMap);
		optionsList = new ArrayList<OverlayOptions>();
	}

	@Override
	public boolean onMarkerClick(Marker arg0) {
		return false;
	}

	@Override
	public boolean onPolylineClick(Polyline arg0) {
		return false;
	}

	@Override
	public List<OverlayOptions> getOverlayOptions() {
		return optionsList;
	}

	/**
	 * 
	 * @Description: 设置数据
	 */
	public void setData(List<OverlayOptions> optionsList) {
		this.optionsList = optionsList;
	}
}
